package cn.gok.day7;

/**
 * @ClassName Tmp
 * @Description TODO
 * @Author HP
 * @Date 15:43 2022/7/12
 * @Version 1.0
 **/
public class Tmp {
    private String name;
    private int age;

    private void fun2(){
        System.out.println(this.age+" "+this.name);
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Tmp(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public void fun1(String str){
        System.out.println("str="+str);
    }
}
